﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using UIT.Web;
using UIT.Controls.Containers;
using UIT.Controls.Input;
using JQueryControlToolkit;
using UIT.Controls.Data;
using UIT.Sample;

namespace UIT.Web.Sample
{
	public class MyFirstPage : Page
	{
		public void TestClick(object sender, EventArgs e)
		{
			FindControl<TextBox>("tb_my").Text = "Success";
		}

        private void dg_Initialized(object sender, EventArgs e)
        {
            ((DataGrid)sender).DataSource = new EnumerableDataProvider(Enumerable.Range(1, 140).Select(i => new CustomObject { Prop1 = "p" + i, Prop2 = "q" + i.ToString("0000") }));
        }
	}
}